<template>
  <div>
    <step-one v-if="step === 0" @submit="changeStep" />
    <step-two v-if="step === 1" />
  </div>
</template>
<script>
import stepOne from './StepOne.vue'
import stepTwo from './StepTwo.vue'
export default {
  components: { stepOne, stepTwo },
  data () {
    return {
      step: 0
    }
  },
  methods: {
    changeStep (step) {
      this.step = step
    }
  }
}
</script>
